﻿using CTP.CRM.Repository.Attributes;

namespace CTP.CRM.Repository.Enum;

/// <summary>
/// 数据类型枚举
/// </summary>
public enum DataType
{
    None = 0,
    空运 = 101,
    海运 = 102,
    铁运 = 103
}

/// <summary>
/// 自定义权限枚举
/// </summary>
[Flags]
public enum CustomPermissionType
{
    None = 0,

    [UserDefinePermissions("ViewAirData")]
    空运 = 1 << 0,

    [UserDefinePermissions("ViewSeaData")]
    海运 = 1 << 1,

    [UserDefinePermissions("ViewTrainData")]
    铁运 = 1 << 2,

    [UserDefinePermissions("ViewAllData")]
    全部 = 空运 | 海运 | 铁运
}